﻿using UnityEngine;
using System.Collections;

public class HelloText : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () 
	{
		if( !GM.fbIsInit ) {
			this.guiText.text = "Odota...";
		}
		else {
			if( FB.IsLoggedIn )
				this.guiText.text = "Moi " + GM.first_name + "!";
			else
				this.guiText.text = "Kirjaudu";
		}
	}
	
	void OnGUI() {
	}
}
